class EnemyTypesManager:
    I = None
    def __init__(self) -> None:
        if not self.I: self.I = self
        self.enemies = {}
    def addType(self,enemy_type:type):
        self.enemies[enemy_type.id] = enemy_type
    def getType(self,enemy_id:type):
        return self.enemies.get(enemy_id, None)
    
from . import knight

def registerAll(et:EnemyTypesManager):
    et.addType(knight.Knight)